<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%String path = request.getContextPath();%>
<form id="pagerForm" method="post" action="<%=path%>/webManager/listPic.action">
	<input type="hidden" name="pageRequest" value="1" />
	<input type="hidden" name="pageNum" value="${paginator.pageIndex}" />
	<input type="hidden" name="numPerPage" value="${paginator.pageSize}" />
	<input type="hidden" name="type" value="1">
</form>
<div class="pageContent">
	<table class="table" width="100%" layoutH="50">
		<thead>
			<tr>
				<th width="10%">文件名称</th>
				<th width="10%">文件大小</th>
				<th width="10%">文件</th>
				<th width="13%">修改时间</th>
				<th width="7%">操作</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="webFileList" id="pic">
				<tr>
					<td title="${name}">${name}</td>
					<td><s:if test="fileSize==0">未知</s:if><s:else>${pic.fileSize}KB</s:else></td>
					<td><s:if test="fileName==null"><a href="${linkFile}" title="点击查看文件">引用链接</a></s:if><s:else><a target="_blank" href="<%=path%>/upload/images/webIndexFile/${id}/${fileName}" title="点击查看文件">${fileName}</a></s:else></td>
		             <td><s:date format="yyyy-MM-dd HH:mm:ss" name="updateTime"/></td>
					<td>
						<a title="编辑" target="navTab" href="<%=path%>/webManager/editPic.action?webFileVO.id=<s:property value="id"/>&webFileVO.type=1" class="btnEdit">编辑</a>
					</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
				<span>显示</span>
				<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
					<option value="15" <c:if test="${paginator.pageSize==15}">selected='selected'</c:if> >15</option>
					<option value="30" <c:if test="${paginator.pageSize==30}">selected='selected'</c:if> >30</option>
					<option value="50" <c:if test="${paginator.pageSize==50}">selected='selected'</c:if> >50</option>
					<option value="100" <c:if test="${paginator.pageSize==100}">selected='selected'</c:if> >100</option>
					<option value="200" <c:if test="${paginator.pageSize==200}">selected='selected'</c:if> >200</option>
				</select>
				<span>条，共${paginator.totalCount}条</span>
			</div>
			<div class="pagination" targetType="navTab" totalCount="${paginator.totalCount}" 
				numPerPage="${paginator.pageSize}" pageNumShown="10" currentPage="${paginator.pageIndex}"></div>
	</div>
</div>